package com.market.dao;

import java.util.List;

import com.market.domain.Location;
import com.market.domain.PickupSchedule;
import com.market.domain.User;

public interface LocationDao extends GenericDao<Location, Long> {
	/**
	 * This method load all pickup days and times associated with this location.
	 * @param location
	 * @return
	 */
	public List<PickupSchedule> findPickupSchedules(Location location);
	/**
	 * This method load all user associated with this location.
	 * @param location
	 * @return
	 */
	public List<User> findAllUsers(Location location);
	
	/**
	 * This method load all locations in the ascent order of number
	 * @return
	 */
	public List<Location> findAllOrderByNumber();
}
